package oop.part9.exer1;
/**
 * 对于Manager类来说，他既是员工，还具有奖金(bonus)的属性。
 */
public class Manager extends Employee{

  private double bonus; // 奖金

  public Manager(double bonus) {
    super();
    this.bonus = bonus;
  }

  public Manager(String name, int id, double salary, double bonus) {
    super(name, id, salary);
    this.bonus = bonus;
  }

  @Override
  public void work() {
    System.out.println("管理员工，提供公司运行的效率");
  }
}
